package com.magic.item.service;

import com.magic.item.pojo.SpecGroup;
import com.magic.item.pojo.SpecParam;

import java.util.List;

/**
 * Created by zhuqin on 2021/1/12
 */
public interface SpecificationService {
    List<SpecGroup> queryGroupsByCid(Long cid);
    
    List<SpecParam> queryParams(Long gid, Long cid, Boolean generic, Boolean searching);
    
    void addSpecParam(SpecParam specParam);
    
    void updateSpecParam(SpecParam specParam);
    
    void deleteSpecParam(Long pid);
    
    void saveSpecGroup(SpecGroup specGroup);
    
    void updateSpecGroup(SpecGroup specGroup);
    
    void deleteSpecGroup(Long gid);
    
    List<SpecGroup> querySpecsByCid(Long cid);
}
